package com.orilife.bean;

import java.io.Serializable;

public class Product implements Serializable{


	int product_id;

	String url;
	int favour_num;
	int collect_num;
	boolean favour;
	int u_id;
	String u_name;
	String avatar;
	String productDes;
	String generateTime;
	Double price;
	
	public boolean isFavour() {
		return favour;
	}

	public void setFavour(boolean favour) {
		this.favour = favour;
	}

	public String getProductDes() {
		return productDes;
	}

	public void setProductDes(String productDes) {
		this.productDes = productDes;
	}

	public String getGenerateTime() {
		return generateTime;
	}

	public void setGenerateTime(String generateTime) {
		this.generateTime = generateTime;
	}

	
	
	public int getProduct_id() {
		return product_id;
	}

	public void setProduct_id(int product_id) {
		this.product_id = product_id;
	}

	

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getFavour_num() {
		return favour_num;
	}

	public void setFavour_num(int favour_num) {
		this.favour_num = favour_num;
	}

	

	public int getU_id() {
		return u_id;
	}

	public void setU_id(int u_id) {
		this.u_id = u_id;
	}

	public String getU_name() {
		return u_name;
	}

	public void setU_name(String u_name) {
		this.u_name = u_name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	
	

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}


	
	

	public int getCollect_num() {
		return collect_num;
	}

	public void setCollect_num(int collect_num) {
		this.collect_num = collect_num;
	}

	public Product(int product_id, String url, int favour_num, int collect_num,
			String productDes,Double price,String generateTime,int u_id, String u_name, String avatar) {
		super();
		this.product_id = product_id;
		this.url = url;
		this.favour_num = favour_num;
		this.collect_num = collect_num;
		this.productDes = productDes;
		this.price = price;
		this.generateTime = generateTime;
		this.u_id = u_id;
		this.u_name = u_name;
		this.avatar = avatar;
		
	}
	public Product(int product_id, String url, int favour_num, boolean favour,
			String productDes,Double price,String generateTime,String u_name, String avatar) {
		super();
		this.product_id = product_id;
		this.url = url;
		this.favour_num = favour_num;
		this.favour = favour;
		this.productDes = productDes;
		this.price = price;
		this.generateTime = generateTime;
		
		this.u_name = u_name;
		this.avatar = avatar;
		
	}

	public Product() {
		super();
	}

	@Override
	public String toString() {
		return "Product [product_id=" + product_id + ", url=" + url
				+ ", favour_num=" + favour_num + ", favour=" + favour
				+ ", u_id=" + u_id + ", u_name=" + u_name + ", avatar="
				+ avatar + ", productDes=" + productDes + ", generateTime="
				+ generateTime + ", price=" + price + "]";
	}


}
